<form action="<?php echo $this->baseurl("/pcjobs/payment/" . $this->getClientId()) ?>" method="post">
<?php App::Helper('Toolbar')->setTitle("Payments")->setBtnBack()->Render(array('code'=>'pcjob_payment_top')); ?>
<?php
	echo App::load("Helper/Html")->hiddenTag("data[Payment][action]","Add",array("id"=>"action"));
	App::Module('DataGrid') ->setDisplay('FormListing')
		->addRow("Balance",'$ ' . (isset($account['balance'])?$account['balance']:"0"))
		->addRow('Amount($)',App::load("Helper/Html")->inputTag("data[Payment][amount]","100",array("id"=>"title","class"=>"check_notempty")) )
		->addRow('Processor',App::load("Helper/Html")->radioTag("data[Payment][processor]",array("Bank"=>"Bank","E-Cheque"=>"E-Cheque","Paypal"=>"Paypal"),"Paypal",array("id"=>"processor","class"=>"check_notempty")) )
		->addRow('Referance',App::load("Helper/Html")->textareaTag("data[Payment][referance]","",array("rows"=>"4","id"=>"processor","class"=>"app_input check_notempty")) )
		->addRow('Payment Date' , App::load("Helper/Html")->inputTag("data[Payment][order_date]","",array("class"=>"date")) )
		->Render();
?>
	<div class="buttons">
		<input type="submit" name="submit" value="Add Payment" />
	</div>
</form>

<br />
<div class="title"><h5>Payment Information by Job</h5></div>
<?php App::Component('Photocliping')->helper('Data')->readPayment($this->getClientId()); ?>

<br />
<div class="title"><h5>Payment Information by Deposit</h5></div>
<?php App::Component('Photocliping')->helper('Data')->readDeposit($this->getClientId()); ?>

<?php App::Helper('Toolbar')->setBtnBack()->Render(array('code'=>'pcjob_payment_bottom')); ?>